package com.fengniu.ejb.dao;

import java.io.Serializable;
import java.util.List;

import com.fengniu.ejb.entity.DeltaRelation;

public interface IDeltaDao extends Serializable {

	/**
	 * 
	 * @param sysId
	 * @param sysIdEntityName
	 * @param relationId
	 * @param sysId2
	 * @param sysId2EntityName
	 * @return
	 */
	public DeltaRelation findDeltaRelation(long sysId, String sysIdEntityName, Integer relationId, long sysId2,
			String sysId2EntityName);

	/**
	 * 
	 * @param deltaSysId
	 * @return
	 */
	public DeltaRelation findDeltaRelationBy(long deltaSysId);

	/**
	 * 
	 * @param sysId
	 * @param entityName
	 * @param relationId
	 * @param sysId2
	 * @param entity2Name
	 * @param pgno
	 * @param pgsize
	 * @return
	 */
	public List<DeltaRelation> getListDeltaRelation(long sysId, String entityName, Integer relationId, long sysId2,
			String entity2Name, int pgno, int pgsize);

	/**
	 * 
	 * @param siteSysId
	 * @param relationIds
	 * @param site2ContentSysId
	 * @param contentTypeIds
	 * @param pgno
	 * @param pgsize
	 * @return
	 */
	public List<DeltaRelation> getListSite2SiteContent2(long siteSysId, Integer[] relationIds, long site2ContentSysId,
			Integer[] contentTypeIds, int pgno, int pgsize);

	/**
	 * 
	 * @param siteSysId
	 * @param relationIds
	 * @param site2ContentSysId
	 * @param contentTypeIds
	 * @return
	 */
	public long getCountSite2SiteContent2(long siteSysId, Integer[] relationIds, long site2ContentSysId,
			Integer[] contentTypeIds);

	public DeltaRelation save(DeltaRelation delta);
}
